<?php

 session_start();
 require ('config/conn.php');
 $user = $_SESSION['username'];
 $section = $_POST['section'];
 $title = $_POST['title'];
 $content = $_POST['content'];
 $subresult = mysql_query("insert into article (username,section,title,content) value('$user','$section','$title','$content')");
 echo mysql_insert_id();

?>
